import WattTool from '@wattjs/tool'

export function pushToReport(value) {
  WattTool.Api.setLocal(`report-${value.id}`, value)
}

export function destoryReport(value) {
  WattTool.Api.rmLocal(`report-${value.id}`)
}

export function findAllReport() {
  return WattTool.Api.findLocal(/^report-/)
}
